﻿@using MsForgeReboot.Framework.Entities
@using MsForgeReboot.Web.Extensions
@model BlogPost

@{
    ViewBag.Title = Model.Title;
    ViewBag.Description = Html.DisplaySummaryFor(Model.Body);
}


<h1>@Html.DisplayFor(model => model.Title)</h1>

<div>
    <span class="badge badge-success">Objavljeno: @Html.DisplayFor(model => model.Published)</span>
 @*   <span class="badge badge-success">@Model.Comments.Count() komentara</span>*@
    <div class="pull-right"><span class="label">@Html.DisplayFor(model => model.Author.PublicName)</span></div>
</div>

<div>
    @Html.DisplayFor(model => model.Body)
</div>

<div>
    @Html.Partial("_SocialShareing")
</div>

@*<div id="blogComments">
    @if (Model.Comments.Any())
    {
        foreach (var comment in Model.Comments)
        {
        @Html.Partial("_comment", comment)
        }
    }
    else
    {
        <p>Budite prvi koji će ostaviti komentar na ovom postu</p>
    }

</div>

<div>
    @Html.Partial("_PostComment", new Comment { BlogPost = Model, CommentBy = Model.Author.PublicName, Email = Model.Author.Username })
</div>*@
